#define _CRT_SECURE_NO_WARNINGS 1
#include<cmath>
#include<iostream>
using namespace std;
void splitfloat(double x, int* intpart, float* fracpart) {
	int a = (int)x;
	*intpart = a;
	*fracpart =(float)( x - (double)a);
}
int main()
{
	double num;
	int intpart;
	float fracpart;
	cin >> num;
	splitfloat(num, &intpart, &fracpart);
	cout << intpart << ' ' << fracpart;

	return 0;
}